package com.sky.service;


import com.sky.dto.EmployeeDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;


public interface EmployeeService {

    //登录
    Employee login(EmployeeDTO employeeDTO);

    //员工添加
    void add(EmployeeDTO employeeDTO);

    //员工分页查询
    PageResult findByPage(String name, Integer page, Integer pageSize);

    //id回显
    Employee findById(Long id);

    //更新员工信息
    void update(EmployeeDTO employeeDTO);

    //启用禁用账号
    void startOrStop(Integer status, Long id);

    //修改密码
    void updatedPassword(Long id, EmployeeDTO employeeDTO);
}
